import time
from datetime import datetime


def bytes_to_gb(bytes_value):
    """字节转GB"""
    return round(bytes_value / (1024 ** 3), 2)


def bytes_to_mb(bytes_value):
    """字节转MB"""
    return round(bytes_value / (1024 ** 2), 2)


def get_current_time():
    current_time = time.time()
    formatted_time = datetime.fromtimestamp(current_time).strftime("%H:%M:%S")
    return formatted_time
